package com.examination.system.administrator.dao;

import com.examination.system.administration.Department;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author 寇淇芮
 * @Date 2019/9/14 9:51
 */
public interface DepartmentRepository  extends JpaRepository<Department,String> {
    Integer deleteByDepartmentId(String departmentId);
    List<Department > findByDepartmentName(String departmentName);
    List<Department> findByDepartmentLeader(String departmentLeader);
}

